package org.overmind.ieat.server.logic.provider;

import org.overmind.ieat.server.entity.Provider;
import org.overmind.ieat.server.exceptions.provider.*;

import java.util.List;

/**
 * @author eugene.karanda
 */
public interface ProviderManager {

    List<Provider> getProviderList();

    Provider findById(int id) throws ProviderFindException;

    boolean deleteById(int id) throws ProviderDeleteException;

    Integer save(Provider provider) throws ProviderSaveException;

    Provider update(int id, Provider provider) throws ProviderUpdateException;
}
